//
//  RandomCallHintViewController.m
//  Molian
//
//  Created by xiaocankeji on 16/4/25.
//  Copyright © 2016年 xiaocan. All rights reserved.
//

#import "RandomCallHintViewController.h"

@interface RandomCallHintViewController ()

@end

@implementation RandomCallHintViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = RGBA(39, 38, 56, 1);
    
//    UIButton *backButton = [[UIButton alloc] initWithFrame:CGRectMake(0, 20, 44, 44)];
//    [backButton setImage:[UIImage imageNamed:@"back_normal"] forState:UIControlStateNormal];
//    [backButton addTarget:self.navigationController action:@selector(clickBack) forControlEvents:UIControlEventTouchUpInside];
//    [self.view addSubview:backButton];
    // Do any additional setup after loading the view.
    
    UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectMake(DeviceWidth/2-208/2, DeviceHeight/2-146/2-100, 208, 146)];
    imageView.image = [UIImage imageNamed:@"随机电话文字"];
    [self.view addSubview:imageView];
    
    
    UILabel *timeLabel = [[UILabel alloc] initWithFrame:CGRectMake(40, DeviceHeight - 100, DeviceWidth - 80, 60)];
    timeLabel.text = @"开放时间: 每晚10点-11点";
    timeLabel.backgroundColor = RGBA(53, 52, 82, 1);
    timeLabel.layer.masksToBounds = YES;
    timeLabel.layer.cornerRadius = 30;
    timeLabel.textColor = RGBA(255, 255, 255, 0.5);
    timeLabel.font = kFont(15);
    timeLabel.textAlignment = NSTextAlignmentCenter;
    [self.view addSubview:timeLabel];

    
    
    UILabel *hintL = [[UILabel alloc] initWithFrame:CGRectMake(0, DeviceHeight - 40, DeviceWidth, 40)];
    hintL.textColor = RGBA(255, 255, 255, 0.5);
    hintL.font = kFont(12);
    hintL.text = @"注:骚扰被举报将取消会员资格";
    hintL.textAlignment = NSTextAlignmentCenter;
    [self.view addSubview:hintL];

    //骚扰被举报将取消会员资格
    
    
    UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(clickTapGR)];
    [self.view addGestureRecognizer:tap];
    
}
- (void)clickTapGR
{
    [self clickBack];
}
- (void)clickBack
{
    [self dismissViewControllerAnimated:YES completion:nil];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
